package com.hxzy.shop.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.common.dto.merchant.req.AnnouncementMerchantListReq;
import com.hxzy.shop.common.dto.merchant.resp.AnnouncementDetailResp;
import com.hxzy.shop.dto.req.AnnouncementIdReq;
import com.hxzy.shop.entity.Announcement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公告(Announcement)表数据库访问层
 *
 * @author makejava
 * @since 2022-07-04 14:25:27
 */
@Mapper
public interface AnnouncementMapper extends BaseMapper<Announcement> {

    /**
     * 查看公告
     * @return
     */
    //Announcement getAnnouncement(Long  announcementId);
    Announcement getAnnouncement(AnnouncementIdReq req);

    List<AnnouncementDetailResp> getAnnouncementDetailRespList();

    List<AnnouncementDetailResp> getAnnouncementMerchantList(@Param("item") AnnouncementMerchantListReq req, @Param("merchantId") String merchantId);

}

